﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PluralSightTut
{
    class StaticCtor
    {
        public static int totalCount { get; set; }
        public string Name { get; set; }

        static StaticCtor()
        {
            totalCount = 10;
        }

        public StaticCtor(string name)
        {
            Name = name;
            totalCount++;
        }

        public StaticCtor() : this("Annonymous") // This will cal to parametarized ctor via non-parameterized ctor of this class
        {

        }
    }
}
